home *** CD-ROM | disk | FTP | other *** search
- function onEnterFrame()
- {
- if(_alpha > 0)
- {
- _alpha = _alpha - 5;
- _X = _X + speed;
- speed /= 1.5;
- _xscale = _xscale / 1.1;
- _yscale = _yscale / 1.1;
- _rotation = _rotation - speed;
- }
- else
- {
- this.removeMovieClip();
- }
- }
- if(_Y == 0)
- {
- speed = 20;
- _Y = _parent._parent.HERO._y;
- }
- else if(_Y == 1)
- {
- speed = -20;
- _Y = _parent._parent.HERO._y;
- }
- else if(random(2) == 0)
- {
- speed = 20;
- }
- else
- {
- speed = -20;
- }
-